//
//  ViewController.m
//  4.线程保活
//
//  Created by 梁森 on 2020/1/17.
//  Copyright © 2020 梁森. All rights reserved.
//

#import "ViewController.h"

#import "NextViewController.h"

@interface ViewController ()

@property (nonatomic, strong) NSThread * thread;


@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor greenColor];
    

    
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    NextViewController * nextVC = [NextViewController new];
    [self presentViewController:nextVC animated:YES completion:nil];
}



@end
